#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：pythonProject2 
@File    ：pro5.py
@Author  ：beibei
@Date    ：2023/12/8 6:06 PM 
'''
# 5、给你一个字典，完成下列题目
# “””
# 已知一个字典：小明和小刚去买水果
# {‘小明’: {‘fruits’: [‘苹果’, ‘草莓’], ‘money’: 89}, ‘小刚’: {‘ftuits’: [‘葡萄’, ‘橘子’], ‘money’: 87}}
# “””
# 1）获取小明购买的金额
# dict={"小明": {"fruits": ["苹果", "草莓"], "money": 89}, "小刚": {"ftuits": ["葡萄", "橘子"], "money": 87}}
# print(dict['小明']['money'])
# 2）小刚想把橘子换成苹果，价格换成85，更新列表
# dict = {"小明": {"fruits": ["苹果", "草莓"], "money": 89}, "小刚": {"fruits": ["葡萄", "橘子"], "money": 87}}
# dict['小刚']['fruits'][1] = '苹果'
# dict['小刚']['money'] = 85
# 3）获取所有所有顾客名单
dict = {"小明": {"fruits": ["苹果", "草莓"], "money": 89}, "小刚": {"fruits": ["葡萄", "橘子"], "money": 87}}
name = list(dict.keys())
print(name)
